<template>
  <div class="troubled-list-item">
    <div class="image-container">
      <el-image :src="item.img"></el-image>
    </div>
    <el-text class="title">{{item.title}}</el-text>
    <div class="text-content">
      <div v-for="(text, index) in item.text">{{text}}</div>
    </div>
  </div>
</template>

<script setup lang="ts">
const props = defineProps({
  item: {
    type: Object,
    default: () => {},
  },
});
</script>

<style scoped lang="scss">
.troubled-list-item {
  width: 304px;
  height: 280px;
  border: 8px;
  border: 1px solid #DFE1E6;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.image-container {
  width: 70px;
  height: 70px;
  border-radius: 35px;
  border: 1px solid #1678FF;
  margin-top: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.el-image {
  width: 36px;
  height: 36px;
}
.title {
  margin-top: 14px;
  font-weight: 600;
  font-size: 18px;
  color: #172B4D;
  line-height: 30px;
}
.text-content {
  margin-top: 8px;
  >div {
    font-size: 16px;
    color: #7A869A;
    line-height: 24px;
    text-align: center;
  }
}
</style>